Release
TheRelease
method decrements an object's reference count by 1.
void Release ();DISCUSSION
When you no longer need an object reference that you obtained by calling a factory method (for example, the draft'sCreatePart
orAcquirePart
method), you should call the object'sRelease
method. In addition, you should balance every call to the object'sAcquire
method with a call to itsRelease
method.OVERRIDING
Every subclass ofODRefCntObject
has its own version of theRelease
method that tells the draft to release the object from memory if the object's reference count becomes 0. Your subclass ofODPart
must override this method. The override method must call its inheritedRelease
method at the beginning of its implementation.SEE ALSO
TheODPart
class (page 459).
"The Release Method" on page 113 in OpenDoc Cookbook.
Table 2-1 on page 90 in OpenDoc Programmer's Guide.
"Responding to a Removed Display Frame" on page 112 in OpenDoc Programmer's Guide.
"Removing an Embedded Frame" on page 122 in OpenDoc Programmer's Guide.
"Undo and Embedded Frames" on page 264 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.
"Reference-Counted Objects" on page 468 in OpenDoc Programmer's Guide.
"Lazy Internalization" on page 473 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help